-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change some WiFi buffer settings to match esp-idf. See #2899 #2912
Conversation
@lbernstone since you found these relationships between buffer configurations, why don't you add some error checking for the values. added these compiler checks would prohibit this error from happening again. This is just an example, You will have to figure out the correct rules to test. #if (CONFIG_ESP32_WIFI_RX_BA_WIN > CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM )
# error buffer config mismatch
#endif Do you know the limit values? Are the current values in your PR "empirical" or calculated? Chuck. |
They are taken from the default sdkconfig in esp-idf, so not really even empirically derived. They are compiled into the libraries, so I'm not sure what an error check would do for anybody but travis. The error check really ought to be upstream in LWiP, where the mismatch is actually causing the problem. |
These are in fact compiled at the time of compiling arduino-esp32 code and not IDF. This is not always the case though. The WiFi library itself uses these values when it initializes the wifi stack. |
These checks will be implemented @ ESP-IDF sooner or later, so I would stay with just fixing the values in the current sdkconfig now & let the checks come in later with an IDF update. |
Doh, you are right. Only used in headers. |
@r1dd1ck is the one he who pointed this out. Almost all settings are precompiled in but there seem to be a handful that are adjustable at the app level. It would be really nice to be able to override these defaults in our app code without modifying core headers but that isn't possible or maintainable. |
@atanisoft : Copy the header into your sketch folder. Arduino will use the local copy instead of the include folder version. |
@lbernstone now that is an awesome find! |
Does this benefit wifi in general? If so can you provide a link to the
header that should be copied?
…On Fri, Jun 21, 2019 at 6:02 PM Mike Dunston ***@***.***> wrote:
@lbernstone <https://github.com/lbernstone> now that is an awesome find!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2912?email_source=notifications&email_token=AC7Y5YK64BAQM3CUCFPWCXDP3V23BA5CNFSM4H2BJQ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJ4VKY#issuecomment-504613547>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC7Y5YJKNRIGRRDTSZB3KF3P3V23BANCNFSM4H2BJQ7Q>
.
|
@Daemach sdkconfig.h I believe |
@Daemach tools/sdk/include/config/sdkconfig.h The other is file is used for the build config. Chuck. |
how does the heap look when you increase the static buffers? |
@me-no-dev Maybe it could survive even without the static buffer raise, as I suppose the most crucial part was the |
Those static buffers should be 1K each. In practice, I see a difference of 3120 bytes between the two configs. |
alright... I'm merging this to include it in the new build |
Buffer mismatches appear to be causing WiFi communications to halt. See #2899 for more details.